file chooser: Fix multi-selection
authorMatthias Clasen <mclasen@redhat.com>
Thu, 9 Jul 2015 01:31:40 +0000 (21:31 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 11 Jul 2015 05:15:42 +0000 (00:15 -0500)
commit0c7237f15ee8271502e99b062cc4780b499d8397
tree1267faa66512931cf9c9bcd59defe009b22b7301
parent24dc6f877120787fafb01bc6a3dc5b1c914ba21f
file chooser: Fix multi-selection

Even if we only ever hit the code with a singleton selection,
calling gtk_tree_selection_get_selected is not ok if the tree
selection mode allows multi-selection. Replace all calls to
gtk_tree_selection_get_selected in the file chooser code with
callback loops iterating over the selection. This problem
was introduced with the recently added rename and delete
menuitems.
gtk/gtkfilechooserwidget.c